package com.ruoyi.order.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.order.mapper.ProjectOrderMapper;
import com.ruoyi.order.domain.ProjectOrder;
import com.ruoyi.order.service.IProjectOrderService;

/**
 * 订单列表Service业务层处理
 * 
 * @author ljy
 * @date 2025-08-06
 */
@Service
public class ProjectOrderServiceImpl implements IProjectOrderService 
{
    @Autowired
    private ProjectOrderMapper projectOrderMapper;

    /**
     * 查询订单列表
     * 
     * @param orderId 订单列表主键
     * @return 订单列表
     */
    @Override
    public ProjectOrder selectProjectOrderByOrderId(Long orderId)
    {
        return projectOrderMapper.selectProjectOrderByOrderId(orderId);
    }

    /**
     * 查询订单列表列表
     * 
     * @param projectOrder 订单列表
     * @return 订单列表
     */
    @Override
    public List<ProjectOrder> selectProjectOrderList(ProjectOrder projectOrder)
    {
        return projectOrderMapper.selectProjectOrderList(projectOrder);
    }

    /**
     * 新增订单列表
     * 
     * @param projectOrder 订单列表
     * @return 结果
     */
    @Override
    public int insertProjectOrder(ProjectOrder projectOrder)
    {
        return projectOrderMapper.insertProjectOrder(projectOrder);
    }

    /**
     * 修改订单列表
     * 
     * @param projectOrder 订单列表
     * @return 结果
     */
    @Override
    public int updateProjectOrder(ProjectOrder projectOrder)
    {
        return projectOrderMapper.updateProjectOrder(projectOrder);
    }

    /**
     * 批量删除订单列表
     * 
     * @param orderIds 需要删除的订单列表主键
     * @return 结果
     */
    @Override
    public int deleteProjectOrderByOrderIds(Long[] orderIds)
    {
        return projectOrderMapper.deleteProjectOrderByOrderIds(orderIds);
    }

    /**
     * 删除订单列表信息
     * 
     * @param orderId 订单列表主键
     * @return 结果
     */
    @Override
    public int deleteProjectOrderByOrderId(Long orderId)
    {
        return projectOrderMapper.deleteProjectOrderByOrderId(orderId);
    }
}
